package Demo07;

import Demo03.User;
import Demo03.UserDAO;
import Demo03.UserDAOImpl;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;

public class UserAction_Sign_in extends ActionSupport implements ModelDriven<User> {
    private User user= new User();
    @Override
    public User getModel() {
        return this.user;
    }

    @Override
    public String execute() throws Exception {
        UserDAO userDAO=new UserDAOImpl();
        userDAO.SaveUser(user);
        return SUCCESS;
    }
}
